
require.config({
    baseUrl : './',
    paths : {
        "jquery" : "./node_modules/jquery/dist/jquery.min",
        "bootstrap" : "./node_modules/bootstrap/dist/js/bootstrap.min",
        "angular":"./node_modules/angular/angular",
        "angularAnimate":"./node_modules/angular-animate/angular-animate.min",
//      "angularLocale":"lib/angularjs/i18n/angular-locale_zh-cn",
      
        "resize" : "js/resize",
        "common" : "js/common.min",
        
        "app":"js/app",
        
        "services":"js/_services/services",
        "apiservices":"js/_services_api/apiservices",
        "filters":"js/_filters/filters.min",
        "directives":"js/_directives/directives",
        
        "treeView":"./js/_directives/treeView",
//        "u2Echarts":"js/_directives/u2Echarts.min",
//        "attachments":"js/_directives/attachments",
//        "attachphoto":"js/_directives/attachphoto",
        
        "controllers":"js/controllers",
        
//        "script":"js/script",
        "BizData":"./component/BizData.min",
        "u2frame":"./component/u2frame",
//        "u2Echarts":"./component/u2Echarts.min",
        
//      "uiBootstrap":"plugins/angular-ui-bootstrap/ui-bootstrap-tpls.min",
        "uiBootstrap":"./node_modules/angular-ui-bootstrap/dist/ui-bootstrap-tpls",
        "ngFileUpload":"./node_modules/ng-file-upload/dist/ng-file-upload.min",

        "ocLazyLoad":"./node_modules/oclazyload/dist/ocLazyLoad.require.min",
        
        "bootstrapDatepicker":"./node_modules/bootstrap-datepicker/dist/js/bootstrap-datepicker.min",
//        "bootstrapDatepickerZhCN":"plugins/bootstrap-datepicker-1.6.4/js/locales/bootstrap-datepicker.zh-CN.min",
        
        "bootstrapDatetimePicker":"./node_modules/bootstrap-datetime-picker/js/bootstrap-datetimepicker.min",

        "bootstrapSwitchJs" : "./node_modules/bootstrap-switch/dist/js/bootstrap-switch.min",
//        "bootstrapTreeview":"plugins/bootstrap-treeview/src/js/bootstrap-treeview",
//        "bootstrapSuggest":"plugins/bootstrap-suggest/bootstrap-suggest",
       
//        "echartsSimple":"plugins/echarts3.3.1/simple/echarts.simple.min",//只包含基础图表折 柱 饼
        "echartsCommon":"./node_modules/echarts/dist/common/echarts.common.min",//包含常用的图表组件 折 柱 饼 散点 图例 工具栏 标注/线/域 数据区域缩放
//      "echartsMin":"plugins/echarts3.3.1/simple/echarts.min",//包含所有图表组件
//      "echartsAll":"plugins/echarts/echarts-all",
      
      "loadingoverlay":"./node_modules/gasparesganga-jquery-loading-overlay/dist/loadingoverlay.min",
        
//        "FileAPI":"plugins/ng-file-upload/FileAPI.min",
//        "angularSanitize":"plugins/angular-sanitize/angular-sanitize.min",
//        "wysiwyg":"plugins/ngWYSIWYG/dist/wysiwyg.min",
        
       
        //首页
//        "appcenter-controllers":"js/center/js/controllers",
       //通用功能模块级控制器
//        "common-controllers":"js/common/js/controllers",
        //公共基础数据模块级控制器
//        "baseinfo-controllers":"js/baseinfo/js/controllers",
        //客户模块级控制器
//        "customer-controllers":"js/customer/js/controllers",
        //物流模块级控制器
//        "shipper-controllers":"js/shipper/js/controllers",
        //库存管理模块级控制器
//        "inventory-controllers":"js/inventory/js/controllers",
        //采购管理模块级控制器
//        "stock-controllers":"js/purchase/js/controllers",
        //销售管理模块级控制器
//        "sale-controllers":"js/sale/js/controllers",
        //销售管理模块级控制器
//        "plan-controllers":"js/plan/js/controllers",
        //供应商模块级控制器
//        "provider-controllers":"js/provider/js/controllers",
        //质量管理模块级控制器
//        "quality-controllers":"js/quality/js/controllers",
        //产品数据管理模块级控制器
//        "product-controllers":"js/product/js/controllers",
        //工单/委外管理模块级控制器
//        "work-controllers":"js/work/js/controllers",
        //生产管理模块级控制器
//        "mes-controllers":"js/manufact/js/controllers",
        //应收应付管理模块级控制器
//        "invoice-controllers":"js/invoice/js/controllers",
        //固定资产管理模块级控制器
//        "assets-controllers":"js/assets/js/controllers",

//        "metisMenu":"appcenter/index/js/plugins/metisMenu/jquery.metisMenu",
//        "slimscroll":"appcenter/index/js/plugins/slimscroll/jquery.slimscroll.min",
//        "hplus":"appcenter/index/js/hplus.min",

//        "contabs":"appcenter/index/js/contabs.min",
//        "content":"appcenter/index/js/content.min",
//        "pace":"appcenter/index/js/plugins/pace/pace.min",

        //jquery插件
//        "outclick":"app/plugins/jQuery-outclick/outclick",
        //plugins
        //http://www.bootcdn.cn/

        
        	
    },
    shim : {

        "jquery":{
            exports:"jquery"
        },
        "bootstrap" : {
            deps : ['jquery'],
            exports : "bootstrap"
        },
        "common" : {
//            deps : ['bootstrap'],
            deps : [],
            exports : "common"
        },
        "angular":{
            deps : ['bootstrap'],
            exports:"angular"
        },
        "angularAnimate":{
            deps : ['angular'],
            exports:"angularAnimate"
        },
//        "angularLocale":{
//            deps : ['angular'],
//            exports:"angularLocale"
//        },
        "uiBootstrap":{
            deps : ['angular'],
            exports:"uiBootstrap"
        },

        "loadingoverlay":{
            deps : ['jquery'],
            exports:"loadingoverlay"
        },
        
//        "tinymce":{
//            deps : ['FileAPI'],
//            exports:"tinymce"
//        },
//        "uiTinymce":{
//            deps : ['tinymce','angular'],
//            exports:"uiTinymce"
//        },
        
        /*
        "angularSanitize":{
            deps : ['angular'],
            exports:"angularSanitize"
        },
        "FileAPI":{
            deps : [],
            exports:"FileAPI"
        },
        "wysiwyg":{
            deps : ['angularSanitize','FileAPI'],
            exports:"wysiwyg"
        },
         */
        
        "ngFileUpload":{
            deps : ['angular'],
            exports:"ngFileUpload"
        },
        
//        "bootstrapSuggest":{
//            deps : ['jquery','bootstrap'],
//            exports:"bootstrapSuggest"
//        },
        "bootstrapDatepicker":{
            deps : ['jquery'],
            exports:"bootstrapDatepicker"
        },
		//      "bootstrapDatepickerZhCN":{
		//      deps : ['jquery'],
		//      exports:"bootstrapDatepickerZhCN"
		//  },
        
        "bootstrapDatetimePicker":{
            deps : ['jquery'],
            exports:"bootstrapDatetimePicker"
        },
        
		  "bootstrapSwitchJs":{
		      deps : ['jquery','bootstrap'],
		      exports:"bootstrapSwitchJs"
		  },
//		  "bootstrapTreeview":{
//		      deps : ['jquery'],
//		      exports:"bootstrapTreeview"
//		  },
//        "angular-strap":{
//            deps : ['angular'],
//            exports:"angular-strap"
//        },
//        "angular-strap-tpl":{
//            deps : ['angular','angular-strap'],
//            exports:"angular-strap-tpl"
//        },
//        "angular-ui-tree":{
//            deps : ['angular'],
//            exports:"angular-ui-tree"
//        },
//        "jquery-ztree":{
//            deps : ['jquery'],
//            exports:"jquery-ztree"
//        },

		  
        "ocLazyLoad":{
            deps : ['angular'],
            exports:"ocLazyLoad"
        },

        "attachments":{
            deps : ['ngFileUpload'],
            exports:"attachments"
        },

//        "attachphoto":{
//            deps : ['ngFileUpload'],
//            exports:"attachphoto"
//        },

    },
//    deps:['bootstrap'],
//    urlArgs: "bust=" + (new Date()).getTime()  //防止读取缓存，调试用
    
    waitSeconds : 0

});


//启动时加载自定义主题
//require(['hplus'],function(){
//});

//ueditor插件需要这样
//require(['ZeroClipboard'], function (ZeroClipboard) {
//window['ZeroClipboard'] = ZeroClipboard;
//});

//require(['pace'],function(pace){
//	console.log('pace-->',pace);
//	pace.start({
//	    document: false
//	});
//});

//	  window.taTools = {};
//	  window.rangy = require('rangy/lib/rangy-core');
//
//	require('rangy-selectionsaverestore');
//	require('textAngular-sanitize');
//	require('textAngular');

//启动时手动启动angular
//require(['angular','resize','bootstrap','app'],function(angular,resize){
require(['angular','resize','app'],function(angular,resize){
//	console.log('app-->',app);
//	angular.bootstrap(document,['u2']);
    
    angular.element(document).ready(function(){
        resize.resize();
        angular.bootstrap(document,['startModule']);
//    	common.hello('require2');

    });
    
    $(window).resize(function(){
    	resize.resize();
    });

});





